import { Controller, Get } from '@nestjs/common';
import { Platform_Service } from '../platform/platform.service';
import { ApiTags } from '@nestjs/swagger';
import { util_ApiResponse_Base } from '@/common/util/apiResponse';
import { util_Index_ReturnContent } from '@/common/util/index';
@Controller('/web/platformWeb')
@ApiTags('platformWeb 商品')
export class PlatformWeb_Controller {
  constructor(private readonly platform_Servicc: Platform_Service) {}

  @Get('/listByprc')
  @util_ApiResponse_Base({
    dataType: 'dataType_ell',
    //apiKey: '/web/platformWeb/listByprc Get',
    summary: '获取有产品且价格大于0的平台',
    noAuth: true,
  })
  async platform_GetPlatformWeb() {
    return util_Index_ReturnContent(await this.platform_Servicc.platform_GetPlatformWeb());
  }
}
